Skip to content

Comments

use common retry policy builder function#1247

Open
symbiogenesis wants to merge 1 commit intoMimetis:masterfrom
symbiogenesis:common-retry-policy
Open

use common retry policy builder function#1247
symbiogenesis wants to merge 1 commit intoMimetis:masterfrom
symbiogenesis:common-retry-policy

Conversation

@symbiogenesis
Copy link
Contributor

@symbiogenesis symbiogenesis commented Sep 11, 2024

In the original code, there was an inconsistency with the retry policy.

The WaitAndRetryForever logic would run when TransactionMode is AllOrNothing in two cases. And would run when not AllOrNothing in the other case.

Also, this means that with a transaction mode of None, this will still do a retry. But, when TransactionMode is None, that seems really destructive to keep trying.

I recommend a consistent policy.

I also recommend to not retry when the mode is None, but to just throw the exception. However, I didn't make that change here. I could do so, if you like the idea.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant